//动态api
import request from '@/utils/request'


export const getHotQuestionSortList = (data) =>request({
  url: '/biz/question/getHotQuestionSortList',
  method: 'post',
  data
})

export const getNotHotQuestionSortList = (data) =>request({
  url: '/biz/question/getNotHotQuestionSortList',
  method: 'post',
  data
})




// 通过问题类型获取问题回答列表
export const getQuestionAnswerList = (data) =>request({
  url: '/biz/question/getQuestionAnswerList',
  method: 'post',
  data
})


// 修改一条问题回答
export const updateQuestionAnswer = (data) =>request({
  url: '/biz/question/updateQuestionAnswer',
  method: 'post',
  data
})

// 新建一条问题回答
export const addQuestionAnswer = (data) =>request({
  url: '/biz/question/addQuestionAnswer',
  method: 'post',
  data
})

// 删除一条问题回答
export const deleteQuestionAnswer = (data) =>request({
  url: '/biz/question/deleteQuestionAnswer',
  method: 'post',
  data
})




// 获取所有问题种类列表
export const getQuestionSortList = (data) =>request({
  url: '/biz/question/getQuestionSortList',
  method: 'post',
  data
})

// 修改一条问题种类
export const updateQuestionSort = (data) =>request({
  url: '/biz/question/updateQuestionSort',
  method: 'post',
  data
})

// 新建一条问题种类
export const addQuestionSort = (data) =>request({
  url: '/biz/question/addQuestionSort',
  method: 'post',
  data
})

// 删除一条问题种类
export const deleteQuestionSort = (data) =>request({
  url: '/biz/question/deleteQuestionSort',
  method: 'post',
  data
})

// // 上传图片
// export const uploadImgage = (data) =>request({
//   url: '/biz/uploadImgage',
//   method: 'post',
//   // headers: {'Content-Type': 'multipart/form-data'},
//    headers:{
//    	'Content-Type': 'multipart/form-data;boundary=<calculated when request is sent>'
//    },

//   data
// })
